package com.woniu.liuzhougov.WorkPlan.pojo;

import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Configuration
public class Plan {
    private Integer planId;

    private Integer planTypeId;

    private Integer planFounderId;

    private Integer planDepartmentId;

    private Date planTime;
    @NotEmpty(message = "计划内容不能为空")
    private String planContent;

    private Date planStartTime;

    private Date planEndTime;

    private Integer planRelease;

    public Integer getPlanId() {
        return planId;
    }

    public void setPlanId(Integer planId) {
        this.planId = planId;
    }

    public Integer getPlanTypeId() {
        return planTypeId;
    }

    public void setPlanTypeId(Integer planTypeId) {
        this.planTypeId = planTypeId;
    }

    public Integer getPlanFounderId() {
        return planFounderId;
    }

    public void setPlanFounderId(Integer planFounderId) {
        this.planFounderId = planFounderId;
    }

    public Integer getPlanDepartmentId() {
        return planDepartmentId;
    }

    public void setPlanDepartmentId(Integer planDepartmentId) {
        this.planDepartmentId = planDepartmentId;
    }

    public Date getPlanTime() {
        return planTime;
    }

    public void setPlanTime(Date planTime) {
        this.planTime = planTime;
    }

    public String getPlanContent() {
        return planContent;
    }

    public void setPlanContent(String planContent) {
        this.planContent = planContent;
    }

    public Date getPlanStartTime() {
        return planStartTime;
    }

    public void setPlanStartTime(Date planStartTime) {
        this.planStartTime = planStartTime;
    }

    public Date getPlanEndTime() {
        return planEndTime;
    }

    public void setPlanEndTime(Date planEndTime) {
        this.planEndTime = planEndTime;
    }

    public Integer getPlanRelease() {
        return planRelease;
    }

    public void setPlanRelease(Integer planRelease) {
        this.planRelease = planRelease;
    }

    @Override
    public String toString() {
        return "Plan{" +
                "planId=" + planId +
                ", planTypeId=" + planTypeId +
                ", planFounderId=" + planFounderId +
                ", planDepartmentId=" + planDepartmentId +
                ", planTime=" + planTime +
                ", planContent='" + planContent + '\'' +
                ", planStartTime=" + planStartTime +
                ", planEndTime=" + planEndTime +
                ", planRelease=" + planRelease +
                '}';
    }
}